﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" codefile="Admin.ascx.vb" Inherits="NVPortal.Modules.NVNews.newsFeedBackAdmin" %>
<script type="text/javascript" language="JavaScript" src="../../../../js/NVCorp.js"></script>
<style type="text/css">
.UN_Item, .SubHead {font-family:Arial; font-size: 12px; color:#434343;font-weight:normal;}
.UN_Header {background:#006699; font-family:Arial; font-size: 12px; color:#fff;}
</style>
<table style="width: 100%; border: 0px padding: 10px;" cellpadding="4" cellspacing="4">
<tr>
                    <td style="height: 30px; background:#d3d3d3; border: solid 1px white; border-bottom: solid 1px white;">
                        Chọn 
                        <asp:CheckBox ID="CheckBox1" runat="server" /> để 
                        <asp:LinkButton CssClass="SubHead" ID="lbtUpdate" runat="server"><span style="padding: 5px;  background: #335de6; font-weight: bold; font-family: Tahoma; font-size: 12px; color: Black;">Duyệt bình luận</span></asp:LinkButton> hoặc 
                        <asp:LinkButton CssClass="SubHead" ID="lbtDelFeedback" runat="server" OnClientClick="javascript: return confirm('Bạn có muốn xoá các tin được đánh dấu không?');"><span style="padding: 5px;  background: #e63333; font-weight: bold; font-family: Tahoma; font-size: 12px; color: yellow;">Xoá bình luận</span></asp:LinkButton>
                    </td>
                </tr>
<tr><td>
<asp:UpdatePanel ID="udpComent" runat="server">
    <ContentTemplate>
        <asp:DataGrid DataKeyField ='NewsFeedbackId' id="drgFeedBackNewsAdmin" runat="server" Width="100%" AllowPaging="true" AutoGenerateColumns="False"
				CellPadding="3" BackColor="White" Font-Names="Arial" BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" PageSize="10">
				<SelectedItemStyle Font-Bold="true" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
				<ItemStyle ForeColor="#000066" Font-Names="Arial"></ItemStyle>
				<FooterStyle ForeColor="#000066" Font-Names="Arial" BackColor="White"></FooterStyle>
                    <Columns>
                        <asp:TemplateColumn>
	                        <HeaderTemplate>
                                <asp:CheckBox ID="chkItemsTop" runat="server" />
	                        </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkItems" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="20" />
                            <HeaderStyle CssClass="UN_Header" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Bài viết">
                            <ItemTemplate>
                                <asp:HyperLink runat="server" Font-Names="tahoma" Font-Size="11px" ForeColor="#a50004" ID="NewsFeedTitlelink" Text='<%# GetTitleNews(Eval("Newsid")).Title %>' NavigateUrl='<%# navigateURL(190) & "&itemid=" & DataBinder.Eval(Container.DataItem,"newsid") %>'></asp:HyperLink>
                            </ItemTemplate>
                             <HeaderStyle CssClass="UN_Header" />
                            <ItemStyle Width="200" CssClass="UN_Item" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Người gửi">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Databinder.eval(Container.Dataitem,"FullName") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle CssClass="UN_Header" />
                            <ItemStyle CssClass="UN_Item" Width="100" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Nội dung">
                            <ItemTemplate>
                                <asp:Label runat="server" Text='<%# Server.HTMLDecode(Databinder.eval(Container.Dataitem,"Content")) %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle CssClass="UN_Header" />
                            <ItemStyle CssClass="UN_Item" />
                        </asp:TemplateColumn>
                        <asp:TemplateColumn>
			            <ItemTemplate>
                            <asp:ImageButton ID="cmdApprove" CommandName="cmdApprove" ToolTip="Duyệt đăng tin" ImageUrl="~/images/ok.png" runat="server" />
			            </ItemTemplate>
			            <HeaderStyle CssClass="UN_Header" />
                            <ItemStyle CssClass="UN_Item" Width="20" />
		            </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
</ContentTemplate>
</asp:UpdatePanel>
</td></tr>
</table>
